package com.nervenets.web.hibernate.domain;

import com.nervenets.web.hibernate.DomainObject;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AccountOpenBinding extends DomainObject {
    @ManyToOne
    @JoinColumn(name = "open_id")
    private AccountOpen open;
    private String mobile;//手机号码
    private String bindCard;//绑定的I类卡号
    private int type = 0;//类型0为开户，1为绑卡
    private String corpSerNo;

    private String corpSernoOriginal;

    private String smsSendNo;
}
